/**
 * 
 */
package com.java.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.java.entity.Image;
import com.java.mapper.ImageMapper;
import com.java.service.ImageService;

/**
* @author Kidney
* 创建时间：2019年2月17日 上午12:50:32
* Description:
*/
/**
 * @author KIDNEY
 *
 */

@Service("ImageServiceImpl")
public class ImageServiceImpl implements ImageService{
	
	@Autowired
	private ImageMapper im;
	/* (non-Javadoc)
	 * @see com.java.service.ImageService#deleteByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public int deleteByPrimaryKey(Integer imageId) {
		// TODO Auto-generated method stub
		return im.deleteByPrimaryKey(imageId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#insert(com.java.entity.Image)
	 */
	@Override
	public int insert(Image record) {
		// TODO Auto-generated method stub
		return im.insert(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#insertSelective(com.java.entity.Image)
	 */
	@Override
	public int insertSelective(Image record) {
		// TODO Auto-generated method stub
		return im.insertSelective(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#selectByPrimaryKey(java.lang.Integer)
	 */
	@Override
	public Image selectByPrimaryKey(Integer imageId) {
		// TODO Auto-generated method stub
		return im.selectByPrimaryKey(imageId);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#updateByPrimaryKeySelective(com.java.entity.Image)
	 */
	@Override
	public int updateByPrimaryKeySelective(Image record) {
		// TODO Auto-generated method stub
		return im.updateByPrimaryKeySelective(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#updateByPrimaryKey(com.java.entity.Image)
	 */
	@Override
	public int updateByPrimaryKey(Image record) {
		// TODO Auto-generated method stub
		return im.updateByPrimaryKey(record);
	}

	/* (non-Javadoc)
	 * @see com.java.service.ImageService#selectByGoodId(java.lang.Integer)
	 */
	@Override
	public List<Image> selectByGoodId(Integer goodId) {
		// TODO Auto-generated method stub
		return im.selectByGoodId(goodId);
	}

}
